home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
UTILITIE
/
UNIX_COH
/
2774A.ZIP
/
TOOLS1.SHZ
/
TOOLS1
/
cuserid.c
next >
Wrap
C/C++ Source or Header
|
1991-07-03
|
162b
|
13 lines
#include <pwd.h>
#include <stddef.h>
/* return name of uid */
char *cuserid()
{
struct passwd *entry;
entry = getpwuid(geteuid());
return entry->pw_name;
}